$size: 80px;

.avatar-item {
    width: 20%;
}

.avatar-item-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 20px auto;
    cursor: pointer;

    &::before {
        @extend %transition;
        position: absolute;
        display: block;
        content: '';
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background-color: #fff;
        transform: scale(0.9);
    }
}

.avatar-item-container-active {
    @extend .avatar-item-container;
    &::before {
        transform: scale(1.2);
    }
}

.avatar-preview {
    @extend %transition;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ccc center/cover no-repeat;
}
